package com.qyhl.webtv.module_live.teletext.newlivelist;


import com.qyhl.webtv.commonlib.entity.live.LiveRoomBean;
import com.qyhl.webtv.commonlib.entity.live.NewLiveListBean;
import com.qyhl.webtv.commonlib.entity.live.TeleTextBean;

public class NewLiveListPresenter implements NewLiveListContract.NewLiveListPresenter {
    private NewLiveListModel mModel;
    private NewLiveListContract.NewLiveListView mView;

    public NewLiveListPresenter(NewLiveListContract.NewLiveListView mView) {
        this.mView = mView;
        this.mModel = new NewLiveListModel(this);
    }

    @Override
    public void getDataList() {
        mModel.getDataList();
    }

    @Override
    public void checkCode(String sceneId, String code, LiveRoomBean bean) {
        mModel.checkCode(sceneId,code,bean);
    }

    @Override
    public void setDataList(NewLiveListBean bean) {
         mView.setDataList(bean);
    }

    @Override
    public void setError() {
        mView.setError();
    }

    @Override
    public void checkResult(boolean isSuccess, LiveRoomBean bean) {
         mView.checkResult(isSuccess,bean);
    }
}
